package org.example.platform.design.guanchazhe;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class QianTai {
    List<TongShi> list = new ArrayList<>();
    private String action;

    public void add(TongShi tongShi) {
        list.add(tongShi);
    }

    public void run() {
        for (TongShi t : list) {
            t.updte();
        }
    }


}
